<template>
    <div class="logniPage" @click="loginClick">
        登陆
    </div>
</template>

<script setup>

import { useRouter, useRoute } from 'vue-router';
const router = useRouter();
const route = useRoute();
const loginClick = () => {
    window.localStorage.setItem('myv3applogin','logined');
    const callBack = route.query.callBack;
    if(callBack){
        router.push(callBack)
    }else{
        router.push('/')
    }
}
</script>

<style scoped>
.logniPage{
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}
</style>